package com.yuwei.movie.demo

import com.yuwei.common.BaseApiService
import com.yuwei.database.entity.MovieEntity
import com.yuwei.common.entity.Res

import com.yuwei.movie.entity.MovieTypeEntity
import kotlinx.coroutines.flow.Flow
import retrofit2.http.GET
import retrofit2.http.Query

interface MovieApiService : BaseApiService {
    //分类
    @GET("/videotype/getMutilType")
    fun getVideoType(): Flow<Res<MovieTypeEntity>>

    //movie_rv
    @GET("/videomulti/getMutilVideoByTypeId")
    fun getVideoList(@Query("page")page:Int,@Query("pagesize")pagesize:Int,@Query("typeid")typeid:Int):Flow<Res<MovieEntity>>
    //推荐视频
    @GET("/videomulti/getRecommendMutilVideo")
    fun getVideoRecommend(@Query("page")page:Int,@Query("pagesize")pagesize:Int):Flow<Res<MovieEntity>>


}